<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<% String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>上传其他资料</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body class="iframeBody">
	<div class="Wrapper">
	 <form id="ligerForm" >
	 	<div class="fieldBox col_50">
				<div class="label"><font color="red">*</font> 其他资料</div>
				<div class="field">
					<jsp:include page="../../rfbuss/frCommFilesUpload.jsp" flush="true" >
							<jsp:param name="filePath" value="arcfile/transfer"/>
					</jsp:include>
					<div id="fileUpload1" class="upfileBoxs"></div>
					<span class="sq-button sq-button-hasicon" id="btnUpload1" onclick="ajaxFileUploadImg('uploads1',1)">
						<i class="sqBtnIco_9"></i>上传
					</span>
				</div>
		</div>
	 </form>
	</div>
</body>
	<script type="text/javascript">
	//返回给调用窗口,返回结果为Map集合
	frameElement.dialog.onOk = function(){
		frameElement.dialog.close();
		//saveUpload('${id}');
	}
	
	frameElement.dialog.onCancel = function (){
		
		frameElement.dialog.close();
	}
	function  uploadCallbackForMore(fileData){
		
		var cfgDtlCd='90';//其他资料
		console.log("fileData"+fileData);
		if(fileData=={}){
			return false;	
		}
		var params = {};
			  params.fileNm=fileData[0].fileNm;
			  params.filePath=fileData[0].filePath;
			  params.tabNm = "ARC_TRANSFER_MAIN";
			  params.cfgCd ="ARC001";
			  params.cfgDtlCd =cfgDtlCd;
			  params.pkId ="${id}";
			  params.fileRem='${paySchNo}';
			  
			  //params.up_file_id=up_file_id;
	    var url = '<%=path%>/archive/arcTransferMain/saveUploadRecord.do';
	    $.ajax({
			type: 'post',
			dataType:'json',
			data:params,
			url: url,
			success:function(msg){
				window.parent.grid.reload();
				//var grid=liger.get("ligergrid_transfer");
			     //grid.reload();
				 if(msg.success == 1){
					var dat = msg.data;
					$.ligerDialog.SQalert({content: msg.info,SQ_type: "success"});
					frameElement.dialog.close();
					 
				 }else{
					 top.$.ligerDialog.SQalert({content: msg.info,SQ_type: "error"});
				 }
			}
		});
	} 

</script>



</html>
 